package net.tolkv.tdd;

import java.util.Collection;
import java.util.UUID;

public class CommonStoreService {
	private IStoreService delegate;
	
	public CommonStoreService(IStoreService _delegate){
		delegate=_delegate;
	}

	public void addItem(Item item) {
		getDelegate().addItem(item);
	}

	public Collection<Item> getItems() {
		return getDelegate().getItems();
	}

	public void sellItem(Item a) {
		getDelegate().sellItem(a);
	}

	public Item findItem(Item a) {
		return getDelegate().findItem(a);
	}

	public Item findItem(UUID id) {
		return getDelegate().findItem(id);
	}

	public IStoreService getDelegate() {
		return delegate;
	}

	public void setDelegate(IStoreService delegate) {
		this.delegate = delegate;
	}
	
	public int getTotalItemsAmount(){
		return delegate.getTotalItemsAmount();
	}

	public int getProfit() {
		// TODO Auto-generated method stub
		return delegate.getProfit();
	}
}
